app.service("goodsCategoryService",function ($http) {
    //通过父级 id 查询
    this.findByParentId=function (parentId) {
        return $http.get("../goodsCategoryController/findByParentId.do?parentId=" + parentId);
    }
    //查询商品分类详情
    this.findOne=function (id) {
        return $http.get("../goodsCategoryController/findOne.do?id="+id);
    }
    //查询商品分类详情
    this.findAll=function () {
        return $http.get("../goodsCategoryController/findAll.do");
    }

});